home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
overm82.zip
/
BTBATS.ZIP
/
SPAWNBBS.BAT
< prev
Wrap
DOS Batch File
|
1990-02-19
|
1KB
|
71 lines
echo off
rem
rem This batch file is invoked when Binkley detects that
rem a human caller is online. It runs RBBS.
rem
d:
cd\rbbs
rem Delete the file that RBBS creates when remote users
rem jump to DOS
if exist rctty.bat del rctty.bat
rem Delete the file that RBBS creates when the sysop hits F1
if exist rbbs1f1.def del rbbs1f1.def
rem Uninstall any carrier watchers
rem watchdg1 off
rem Test to see how to run the BBS
if %1$ == $ goto DoorReturn
if %1 == local goto Local
if %1 == LOCAL goto Local
if %1 == Local goto Local
goto Remote
:DoorReturn
rbbs-pc.exe
goto CheckEnd
:Local
rbbs-pc.exe local
goto CheckEnd
:Remote
rem Call RBBS with the baud rate and number of minutes
rem until the next event, as passed by the BBSBATCH file.
rbbs-pc.exe /%3 /%1
goto CheckEnd
:CheckEnd
rem Check for a DOS jump. If so, turn on a carrier monitor.
rem if exist rctty.bat watchdg1 on
if exist rctty.bat rctty.bat
rem Get out of the whole mess if the sysop hit F1
if exist rbbs1f1.def goto End
rem Reinvoke the BinkleyTerm batch file
d:
cd\binkley
binkley.bat
:End